package com.xbongbong.pro.sms.pojo.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 从供应商获取短信状态
 * @author hongxiao
 * @date 2019-10-18 15:03
 * @since
 * @version
 */
@Getter
@Setter
@ToString
public class SmsUpdateStatusDTO {

    private static final long serialVersionUID = 2606082942127580247L;

    @NotBlank(message="{dto.msg.smsUpdateStatus.key.NotBlank}")
    private String key;

    @NotNull(message = "{dto.msg.smsUpdateStatus.sendApi.NotNull}")
    @Min(value=3, message = "{dto.msg.smsUpdateStatus.sendApi.Min}")
    @Max(value=4, message = "{dto.msg.smsUpdateStatus.sendApi.Max}")
    /**
     * 短信发送通道类型 3：空间畅想通知帐号，4:空间畅想营销帐号
     */
    private Integer sendApi;
}
